minios: fix minios console
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 07:55:43 +0000 (08:55 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Oct 2009 07:55:43 +0000 (08:55 +0100)
commit17af1d38f3932511dd74e0e301aabf5f7a38bc0c
tree4406b4f0a95fe4895390c90f2efbadc48a6ff5b4
parentfda49f9b3fbb29f2ed9e143bb77d74e76cede6a2
minios: fix minios console

MiniOS' console_print tries to expand '\n' into "\n\r" in place,
causing page faults if the string resides in text.
Use a duplicate of the string instead.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
extras/mini-os/console/console.c